home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
doors_2
/
rnet107u.zip
/
LOWMEM.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-01-03
|
4KB
|
93 lines
echo off
cls
echo %0 Processing... %1 [low memory/external compression example batch]
rem ┌─────────────────────────────────────────────────────────────────────────┐
rem │ This example batch file is for operating RNET with ARCHIVE=EXTERNAL for │
rem │ Sysops running in tight memory where the shell for the compression util │
rem │ is failing due to memory. Note that RNET simply does NOT do ANY shells │
rem │ when ARCHIVE=EXTERNAL is specified in the HOST_ID.CFG file! │
rem └─────────────────────────────────────────────────────────────────────────┘
if '%1'=='' goto BADID
goto MAIL
:BADID
echo ┌────────────────────────────────────────────────────────────────────────┐
echo │ Warning! This batch file requires the host packet ID as a parameter! │
echo └────────────────────────────────────────────────────────────────────────┘
echo Examples:
echo %0 FTL (for Faster-Than-Light as host)
echo %0 TRP (for The Right Place as host)
echo %0 CHEERS (for Cheers! SuperRegional as host)
echo %0 EXECNET (for Executive Network as host)
echo %0 started without host ID parameter! >> ERROR.LOG
goto ABORTMAIL
:MAIL
e:
cd \rnet
rem ┌─────────────────────────────────────────────────────────────────────────┐
rem │ Export mail which is for your host. Finds mail in conferences which │
rem │ needs to be sent up to host system. If the *.REP packet is present, │
rem │ we must uncompress it to allow RNET to append output. Uses PKUNZIP. │
rem │ The contents of the REP packet must be placed in the WORKING DIR as set │
rem │ in the HOST_ID.CFG file. In this case, we are using e:\rnet\workdir\ │
rem ├─────────────────────────────────────────────────────────────────────────┤
rem │ After RNET has processed the new mail, we must rebuild the .REP file. │
rem │ For this example, we will use PKZIP -M -EX for this operation. We will │
rem │ also include the REP.LOG in case we need to see the contents later. │
rem └─────────────────────────────────────────────────────────────────────────┘
if exist %1.REP PKUNZIP -O %1.REP e:\rnet\workdir\
RNET EXPORT %1
if not exist e:\rnet\workdir\%1.MSG goto SKIPREP
PKZIP -M -EX %1.REP e:\rnet\workdir\%1.MSG e:\rnet\workdir\REP.LOG
:SKIPREP
rem ┌─────────────────────────────────────────────────────────────────────────┐
rem │ Send *.REP packet up to host and download *.QWK packet for importing. │
rem │ Replace this with your terminal program and script designed for this. │
rem │ Whatever your terminal program and script, if the REP packet is │
rem │ successfully uploaded, you MUST delete the REP packet or RNET will │
rem │ append tomorrows mail to the end! You may simply rename or move the │
rem │ REP packet also. │
rem └─────────────────────────────────────────────────────────────────────────┘
echo Removing previous %1.QWK packet (one should not exist yet!)
if exist %1.QWK erase %1.QWK
rem ┌─────────────────────────────────────┐
rem │ assumes script called (host_id).slc │
rem └─────────────────────────────────────┘
echo Calling host... using Telix script %1.slc, located in e:\telix\
cd \telix
telix -s%1
cd \rnet
rem ┌─────────────────────────────────────────────────────────────────────────┐
rem │ Now IMPORT any new mail aquired from the host (*.QWK) The QWK packet │
rem │ must be uncompressed for RNET to process it. Only files needed from │
rem │ the QWK packet are MESSAGES.DAT and CONTROL.DAT. │
rem └─────────────────────────────────────────────────────────────────────────┘
if not exist %1.QWK goto ENDOFMAIL
PKUNZIP %1.QWK messages.dat control.dat e:\rnet\workdir\
RNET IMPORT %1
:ENDOFMAIL
c:
cd\pcb
echo %0 Processing of %1 Completed... returned to c:\pcb\
:ABORTMAIL